#ifndef __MAIN_UI_SCENE_H__
#define __MAIN_UI_SCENE_H__

#include "cocos2d.h"
#include "MainSceneMiddle.h"

USING_NS_CC;

#define MAIN_TOP					1
#define MAIN_TOP_STRENGTH_TIME		2
#define MAIN_TOP_STRENGTH_VALUE		3
#define MAIN_TOP_STRENGTH_PROCESS	4






class MainUIScene : public CCScene
{
public:
	MainUIScene();
	~MainUIScene();

	CREATE_FUNC(MainUIScene);

	virtual bool init();

	void Create_Button_HomePage(CCObject* pSender);
	void Create_Button_Instance(CCObject* pSender);
	void Create_Button_Fight(CCObject* pSender);
	void Create_Button_Store(CCObject* pSender);
	void Create_Button_Social(CCObject* pSender);
	void Create_Button_More(CCObject* pSender);




private:

	CCLayerMultiplex* _CCLayerMultiplex;
	MainSceneMiddle* _MainSceneMiddle;
	void InitSysInfoLayer();
	void ConfigureMultiplexLayer();
	void ConfigureTopUI();
	void ConfigureButtonUI();
	void ScrollText();

	void Show_BattleResult(CCObject* pSender);
	void update(float dt);
	void UpdateTestrengthime(float diff);


	std::string GetStrengTimes(std::string strengtime);
	std::string GetStrengValue(std::string strengvalue);



	CCLabelTTF* text;



};





#endif